Resource URL: /platform/<<version=1>>/auth/roles/<ROLE>/privileges

    Overview: This resource applies the standard collection pattern to
              privileges belonging to a role.

     Methods: GET, POST

********************************************************************************

Method GET: List all privileges in the role.

       URL: GET /platform/<<version=1>>/auth/roles/<ROLE>/privileges

There are no query arguments for this method.

GET response body schema:
{
  "type": "object", 
  "properties": {
    "privileges": {
      "items": {
        "type": "object", 
        "description": "Specifies the system-defined privilege that may be granted to users.", 
        "properties": {
          "read_only": {
            "type": "boolean", 
            "description": "True, if the privilege is read-only."
          }, 
          "id": {
            "required": true, 
            "type": "string", 
            "description": "Specifies the ID of the privilege."
          }, 
          "name": {
            "type": "string", 
            "description": "Specifies the name of the privilege."
          }
        }
      }, 
      "type": "array"
    }, 
    "resume": {
      "type": [
        "string", 
        "null"
      ], 
      "description": "Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options)."
    }
  }
}

********************************************************************************

Method POST: Add a privilege to the role.

        URL: POST /platform/<<version=1>>/auth/roles/<ROLE>/privileges

There are no query arguments for this method.

Required POST request body fields:
id

POST request body schema:
{
  "type": "object", 
  "description": "Specifies the system-defined privilege that may be granted to users.", 
  "properties": {
    "read_only": {
      "type": "boolean", 
      "description": "True, if the privilege is read-only."
    }, 
    "id": {
      "required": true, 
      "type": "string", 
      "description": "Specifies the ID of the privilege."
    }, 
    "name": {
      "type": "string", 
      "description": "Specifies the name of the privilege."
    }
  }
}

POST response body schema:
{
  "type": "object", 
  "properties": {
    "id": {
      "required": true, 
      "type": "string", 
      "description": "ID of created item that can be used to refer to item in the collection-item resource path."
    }
  }
}
